package com.ruoyi.pg.questionnaire.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.pg.questionnaire.domain.PgQuestion;
import com.ruoyi.pg.questionnaire.vo.PgQuestionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 问卷题目Mapper接口
 *
 * @author Ming
 * @date 2025-08-22
 */
public interface PgQuestionMapper extends BaseMapper<PgQuestion> {

    Page<PgQuestionVo> queryList(Page<?> page, @Param("entity") PgQuestionVo entity);

    List<PgQuestionVo> queryList(@Param("entity") PgQuestionVo entity);

    PgQuestionVo queryById(@Param("id") Long id);

    Integer selectCountByTempId(@Param("tempId") Long tempId);

    PgQuestionVo queryByTempId(@Param("tempId") Long tempId);
}
